<%-- 
    Document   : verificautente
    Created on : 4-giu-2014, 15.16.55
    Author     : micheleprola
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>SportingEventClub - Login</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="CSS/BaseSite.css" />
        <link rel="stylesheet" type="text/css" href="CSS/vertical-ticker.css"/>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
        <script type="text/javascript" src="JQuery/jquery.totemticker.js"></script>
        <link rel="shortcut icon" href= "Images/stadion-icon.png"/>
    </head>
    <body>
        <%
            session = request.getSession();
            String verificato = (String) session.getAttribute("verificato");
            if(verificato==null){
                RequestDispatcher rd = getServletContext().getRequestDispatcher("/GeneralController");
                rd.forward(request, response);
            }else{
        %>
            <div class="main">
                <div class="page">
                    <div class="header">       
                        <div class="login">
                            <%@include file="login.jsp"%>
                        </div>
                        <div class="banner">
                        </div>
                        <div class="topmenu">
                            <%@include file="topmenu.jsp" %>
                        </div>
                    </div>
                    <div class="content">
                        <div class="content-in">
                            <div class="left-panel">
                                <div class="left-panel-in" style="text-align: center;">
                                    <form name="Login" method="post" class="signin" action="GeneralController"> 
                                        <table style="margin-left: 180px; margin-top: 40px;">
                                            <tr>
                                                <%if(verificato.equals("true")){%>
                                                <td><h2 style="color: red; margin-left: 55px ;">Utente verificato correttamente</h2></td>
                                                <%}else{%>
                                                <td><h2 style="color: red; margin: 55px;">Utente non verificato correttamente</h2></td>
                                                <%}%>
                                            </tr>
                                        </table>                                   
                                        <fieldset class="textbox" style="margin-left: 235px; margin-top: 10px;">
                                            <table border="1" style="border-color: #004be3;">
                                                <tr style="padding: 20px;">
                                                    <td style="padding: 20px;">
                                                        <label class="username">
                                                            <span>Nome Utente</span>
                                                            <input id="username" name="username" value="" type="text" autocomplete="on" placeholder="Username">
                                                        </label>
                                                        <label class="password">
                                                            <span>Password</span>
                                                            <input id="password" name="password" value="" type="password" placeholder="Password">
                                                        </label>
                                                        <button type="submit" class="submit button" name="submit" value="Login">Login</button>               
                                                    </td>    
                                                </tr>    
                                            </table>
                                        </fieldset>
                                    </form>
                                </div>
                            </div>
                            <div class="right-panel">
                                <div class="right-panel-in">
                                    <jsp:include page="/GeneralController">
                                    <jsp:param name="submit" value="right-content"/>
                                    <jsp:param name="op" value="newsbox"/>
                                    </jsp:include>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="footer">
                        <%@include file="footer.jsp" %> 
                    </div>
                </div>
            </div>
        <%}%>
    </body>
</html>
